package com.ethink.warehouse.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.info.MateInventoryOtherInLogDetailInfo;
import com.ethink.warehouse.api.request.MateInventoryOtherInLogDetailAddRequest;
import com.ethink.warehouse.api.request.MateInventoryOtherInLogDetailQueryRequest;
import com.ethink.warehouse.api.request.MateInventoryOtherInLogDetailUpdateRequest;
import com.ethink.warehouse.api.response.MateInventoryOtherInLogDetailAddResponse;
import com.ethink.warehouse.api.response.MateInventoryOtherInLogDetailDeleteResponse;
import com.ethink.warehouse.api.response.MateInventoryOtherInLogDetailUpdateResponse;
import com.ethink.warehouse.common.entity.MateInventoryOtherInLogDetail;

import java.util.List;

/**
 * 其他入库明细 Service接口
 *
 * @author default
 * @date 2023-02-09
 */
public interface MateInventoryOtherInLogDetailService {

    /**
     * 分页查询
     *
     * @param request
     * @return
     */
    Page<MateInventoryOtherInLogDetailInfo> queryMateInventoryOtherInLogDetail(MateInventoryOtherInLogDetailQueryRequest request);

    /**
     * 查询详情
     *
     * @param mateInventoryOtherInLogDetailId
     * @return
     */
    MateInventoryOtherInLogDetailInfo getMateInventoryOtherInLogDetailById(Long mateInventoryOtherInLogDetailId);

    /**
     * 查询列表
     *
     * @param request
     * @return
     */
    List<MateInventoryOtherInLogDetailInfo> listMateInventoryOtherInLogDetail(MateInventoryOtherInLogDetailQueryRequest request);

    /**
     * 新增
     *
     * @param request
     * @return
     */
    MateInventoryOtherInLogDetailAddResponse addMateInventoryOtherInLogDetail(MateInventoryOtherInLogDetailAddRequest request);

    /**
     * 修改
     *
     * @param request
     * @return
     */
    MateInventoryOtherInLogDetailUpdateResponse updateMateInventoryOtherInLogDetail(MateInventoryOtherInLogDetailUpdateRequest request);

    /**
     * 删除
     *
     * @param mateInventoryOtherInLogDetailId
     * @return
     */
    MateInventoryOtherInLogDetailDeleteResponse deleteMateInventoryOtherInLogDetail(Long mateInventoryOtherInLogDetailId);

    /**
     * 根据orderNo查询明细数据
     *
     * @param orderNo
     * @return
     */
    List<MateInventoryOtherInLogDetailInfo> listMateInventoryOtherInLogDetailByOrderNo(String orderNo);

    /**
     * 逻辑删除
     *
     * @param orderNo
     * @return
     */
    Boolean deleteMateInventoryOtherInLogDetailByOrderNo(String orderNo);

    /**
     * 新增n个
     *
     * @param childrenList
     * @return
     */
    Boolean addMateInventoryOtherInLogDetailList(List<MateInventoryOtherInLogDetail> childrenList);

}